package com.ycl.service.impl;

import com.github.pagehelper.PageHelper;
import com.ycl.mapper.EbUserMapper;
import com.ycl.model.EbUser;
import com.ycl.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UsersService {
    @Autowired
    private EbUserMapper ebUserMapper;

    /**
     * 用户分页实现类
     * @param page
     * @param pageSize
     * @return
     */
    @Override
    public List<EbUser> userList(Integer page,Integer pageSize){
        PageHelper.startPage(page,pageSize);
        List<EbUser> ebUsers = ebUserMapper.selectByExample(null);
        return ebUsers;
    }

}
